<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

use think\facade\Request;
use think\facade\Route;


//Route::rule('api/:controller/:method', 'common/BaseController/validtoken');


// return [
//     '__pattern__' => [
//         'name' => '\w+',
//     ],
//     '[hello]'     => [
//         ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
//         ':name' => ['index/hello', ['method' => 'post']],
//     ],


// ];

//Test
Route::rule('api/Testredis','api/Appointment/testredis','get');
Route::rule('api/curl','api/user/curlink','get');
//API
Route::rule('api/user/send','api/user/send_get','get');
Route::rule('api/user/information','api/user/information_post','post');
Route::rule('api/user/changepwd','api/user/changepwd_post','post');
Route::rule('api/user/info','api/user/info_get','get');
Route::rule('api/user/binding','api/user/binding_post','post');
Route::rule('api/user/upload','api/user/upload_post','post');
Route::rule('api/user/verify','api/user/verify_post','post');
Route::rule('api/user/intstaff','api/user/Internal_staff','get');
Route::rule('api/user/ulist','api/user/get_UserList','get');
Route::rule('api/user/infovisit','api/user/infovisit_get','get');
Route::rule('api/user/passu','api/user/TestUcheck','post');
Route::rule('api/user/sharelink','api/user/makeshare_code','post');



Route::rule('api/company/upload','api/company/upload_post','post');
Route::rule('api/company/information','api/company/information_post','post');
Route::rule('api/company/info','api/company/info_get','get');
Route::rule('api/company/apply','api/company/apply_post','post');
Route::rule('api/company/process','api/company/process_post','post');
Route::rule('api/company/quit','api/company/quit_post','post');
Route::rule('api/company/change_admin','api/company/change_admin_post','post');
Route::rule('api/company/list','api/company/CompanyList','get');
Route::rule('api/company/ulogs','api/company/getuser_comeLogs','get');



Route::rule('api/dept/add','api/dept/add_post','post');
Route::rule('api/dept/edit','api/dept/edit_post','post');
Route::rule('api/dept/delete','api/dept/delete_post','post');
Route::rule('api/dept/getlist','api/dept/getlist_get','get');
Route::rule('api/dept/join','api/dept/join_post','post');
Route::rule('api/dept/manager','api/dept/manager_post','post');
Route::rule('api/dept/deptudel','api/dept/deldeptuser','post');


Route::rule('api/visiter/add','api/visiter/add_post','post');
Route::rule('api/visiter/edit','api/visiter/edit_post','post');
Route::rule('api/visiter/delete','api/visiter/delete_post','post');
Route::rule('api/visiter/getlist','api/visiter/getlist_get','get');



Route::rule('api/question/add','api/question/add_post','post');
Route::rule('api/question/edit','api/question/edit_post','post');
Route::rule('api/question/delete','api/question/delete_post','post');
Route::rule('api/question/getlist','api/question/getlist_get','get');
Route::rule('api/question/train','api/question/train_post','post');



Route::rule('api/appointment/add','api/appointment/add_post','post');
Route::rule('api/appointment/edit','api/appointment/edit_post','post');
Route::rule('api/appointment/delete','api/appointment/delete_post','post');
Route::rule('api/appointment/info','api/appointment/info_get','get');
Route::rule('api/appointment/getlist','api/appointment/getlist_get','get');
Route::rule('api/appointment/accept','api/appointment/accept_post','post');
Route::rule('api/appointment/refuse','api/appointment/refuse_post','post');
Route::rule('api/appointment/arrive','api/appointment/arrive_post','post');
Route::rule('api/appointment/leave','api/appointment/leave_post','post');
Route::rule('api/appointment/chappuser','api/appointment/choiceAppuser','post');

Route::rule('api/meeting/meeltistt','api/meeting/meeting_list','get');

Route::rule('api/arrive/accept','api/arrive/accept_post','post');
Route::rule('api/arrive/refuse','api/arrive/refuse_post','post');
Route::rule('api/arrive/leave','api/arrive/leave','post');

Route::rule('api/arrive/confirm','api/arrive/confirm','post');
Route::rule('api/arrive/arrived','api/arrive/arrived','post');

Route::rule('api/visiter/applogslist','api/visiter/applogslist_get','get');

//订单-会员-套餐
Route::rule('api/commodity/chcommodity','api/Commodity/runcommodity','post');
Route::rule('api/commodity/getlist','api/Commodity/selectCommodity','get');


Route::rule('api/wechat/wxpay','api/Wechat/wx_pay','post');
//admin
Route::rule('admin/role/add','admin/role/add_post','post');
Route::rule('admin/role/edit','admin/role/edit_post','post');
Route::rule('admin/role/delete','admin/role/delete_post','post');
Route::rule('admin/role/getlist','admin/role/getlist_get','get');
Route::rule('admin/role/info','admin/role/info_get','get');
Route::rule('admin/role/actions','admin/role/actions_get','get');
Route::rule('admin/role/allow_fields','admin/role/allow_fields_get','get');
Route::rule('admin/role/setallowfields','admin/role/setallowfields_post','post');
Route::rule('admin/role/setaction','admin/role/setaction_post','post');


